using SonicBloom.Koreo;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Ball : MonoBehaviour
{
    private Rigidbody2D rb;
    public float speedJump;
    public string EventID;
    // Start is called before the first frame update
    void Awake()
    {
        rb = GetComponent<Rigidbody2D>();
        Koreographer.Instance.RegisterForEvents(EventID, Jump);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void Jump(KoreographyEvent koreography)
    {
        rb.velocity = Vector3.up *speedJump;
    }
}
